package com.jeomo.mem.provider.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.jeomo.base.starter.vo.BaseVO;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 会员积分调整
 *
 * @author:Jackpot
 * @create 2020-10-30
 */
public class MemberPointsAdjustVo extends BaseVO {

    /** 会员号 */
    private String memberNo;
    private String cardNo;
    private String memberName;
    private String memberPhone;
    /** 会员等级 */
    private String levelCode;
    private String levelName;
    /** 原积分 */
    private Integer pointsOld;
    /** 积分变动 */
    private Integer pointsChange;
    /** 调整后积分 */
    private Integer pointsFinal;
    /** 处理人  */
    private String handler;
    /**  操作时间 */
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime handleTime;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    /**  过期时间: 获取积分需要设置过期时间,消费掉积分不需要过期时间*/
    private LocalDate expiredTime;
    /** 备注 */
    private String memo;

    public LocalDate getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(LocalDate expiredTime) {
        this.expiredTime = expiredTime;
    }

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberPhone() {
        return memberPhone;
    }

    public void setMemberPhone(String memberPhone) {
        this.memberPhone = memberPhone;
    }

    public String getLevelCode() {
        return levelCode;
    }

    public void setLevelCode(String levelCode) {
        this.levelCode = levelCode;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public Integer getPointsOld() {
        return pointsOld;
    }

    public void setPointsOld(Integer pointsOld) {
        this.pointsOld = pointsOld;
    }

    public Integer getPointsChange() {
        return pointsChange;
    }

    public void setPointsChange(Integer pointsChange) {
        this.pointsChange = pointsChange;
    }

    public Integer getPointsFinal() {
        return pointsFinal;
    }

    public void setPointsFinal(Integer pointsFinal) {
        this.pointsFinal = pointsFinal;
    }

    public String getHandler() {
        return handler;
    }

    public void setHandler(String handler) {
        this.handler = handler;
    }

    public LocalDateTime getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(LocalDateTime handleTime) {
        this.handleTime = handleTime;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
